<template>
  <div class="list-item">
    <div class="list-item-icon" :class="bgColor">
      <i :class="icon"></i>
    </div>
    <div class="list-item-content">
      <div class="list-item-title">{{ title }}</div>
      <div class="list-item-desc">{{ description }}</div>
    </div>
    <div class="list-item-right">
      <i class="fas fa-chevron-right"></i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ListItem',
  props: {
    title: {
      type: String,
      required: true
    },
    description: {
      type: String,
      default: ''
    },
    icon: {
      type: String,
      default: 'fas fa-file'
    },
    bgColor: {
      type: String,
      default: 'bg-blue'
    }
  }
}
</script>

<style scoped>
.list-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.list-item-icon i {
  color: #fff;
  font-size: 16px;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.list-item-desc {
  font-size: 12px;
  color: #666;
}

.list-item-right {
  margin-left: 8px;
  color: #999;
  font-size: 18px;
}
</style> 